package cn.oneonecode.partten.factory.simple;

import cn.oneonecode.partten.factory.Editor;
import cn.oneonecode.partten.factory.impl.MarkdownEditorImpl;
import cn.oneonecode.partten.factory.impl.UEditorImpl;

/**
 * Created by tuaobin on 2018/3/7.
 */
public class SimpleFactoryImpl implements SimpleFactory {
    public Editor getEditor(String editType) {
        if ("markdown".equals(editType)) {
            return new MarkdownEditorImpl();
        } else {
            return new UEditorImpl();
        }
    }
}
